package com.yc.mybatis.bean;

public class GoodsType2 {
	private Integer Sno;
	private String Sname;
	private String Ssex;
	private Integer Sage;
	private String Sdept;
	private Integer Cno;
	
	@Override
	public String toString() {
		return "GoodsType [Sno=" + Sno + ", Sname=" + Sname + ", Ssex=" + Ssex + ", Sage=" + Sage + ", Sdept=" + Sdept
				+ ", Cno=" + Cno + "]";
	}

	public GoodsType2(Integer sno, String sname, String ssex, Integer sage, String sdept, Integer cno) {
		super();
		Sno = sno;
		Sname = sname;
		Ssex = ssex;
		Sage = sage;
		Sdept = sdept;
		Cno = cno;
	}

	public GoodsType2() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Integer getSno() {
		return Sno;
	}

	public void setSno(Integer sno) {
		Sno = sno;
	}

	public String getSname() {
		return Sname;
	}

	public void setSname(String sname) {
		Sname = sname;
	}

	public String getSsex() {
		return Ssex;
	}

	public void setSsex(String ssex) {
		Ssex = ssex;
	}

	public Integer getSage() {
		return Sage;
	}

	public void setSage(Integer sage) {
		Sage = sage;
	}

	public String getSdept() {
		return Sdept;
	}

	public void setSdept(String sdept) {
		Sdept = sdept;
	}

	public Integer getCno() {
		return Cno;
	}

	public void setCno(Integer cno) {
		Cno = cno;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((Cno == null) ? 0 : Cno.hashCode());
		result = prime * result + ((Sage == null) ? 0 : Sage.hashCode());
		result = prime * result + ((Sdept == null) ? 0 : Sdept.hashCode());
		result = prime * result + ((Sname == null) ? 0 : Sname.hashCode());
		result = prime * result + ((Sno == null) ? 0 : Sno.hashCode());
		result = prime * result + ((Ssex == null) ? 0 : Ssex.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GoodsType2 other = (GoodsType2) obj;
		if (Cno == null) {
			if (other.Cno != null)
				return false;
		} else if (!Cno.equals(other.Cno))
			return false;
		if (Sage == null) {
			if (other.Sage != null)
				return false;
		} else if (!Sage.equals(other.Sage))
			return false;
		if (Sdept == null) {
			if (other.Sdept != null)
				return false;
		} else if (!Sdept.equals(other.Sdept))
			return false;
		if (Sname == null) {
			if (other.Sname != null)
				return false;
		} else if (!Sname.equals(other.Sname))
			return false;
		if (Sno == null) {
			if (other.Sno != null)
				return false;
		} else if (!Sno.equals(other.Sno))
			return false;
		if (Ssex == null) {
			if (other.Ssex != null)
				return false;
		} else if (!Ssex.equals(other.Ssex))
			return false;
		return true;
	}

	


}
